//
//  UICustomTableView.m
//  TTAddressBook
//
//  Created by iphonekf2 on 12-1-11.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "UICustomTableView.h"


@implementation UICustomTableView


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    CGPoint pos = [[touches anyObject] locationInView:self];
    pos.y = pos.y - self.contentOffset.y-20;
    [popDelegate PoptouchBegan:pos];
//    NSLog(@"point y %f",pos.y);
//     NSLog(@"point x %f",pos.x);
  //  [super touchesBegan:touches withEvent:event];
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
    CGPoint pos = [[touches anyObject] locationInView:self];
    pos.y = pos.y - self.contentOffset.y-20;
    [popDelegate PoptouchMoved:pos];
   // [super touchesMoved:touches withEvent:event];
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
    CGPoint pos = [[touches anyObject] locationInView:self];
    pos.y = pos.y - self.contentOffset.y;
    [popDelegate PoptouchEnded:pos];
   //  [super touchesEnded:touches withEvent:event];
}


//- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event{
//
//}
- (void)set_Delegate:(id)mydelegate{
    popDelegate = mydelegate;
}

@end
